package org.dream.service;

import java.util.List;
import java.util.Map;
import java.util.Set;

import org.dream.domain.Dealrecord;
import org.dream.domain.Dealrecord.Dealkind;
import org.dream.domain.Industry;
import org.dream.domain.Stock;
import org.dream.domain.ZtAnalysis;

public interface StockService {
	public static final int KIND_MYSELECT = 1;
	public static final int KIND_A = 2;

	/**
	 * 根据股票类型得到股票列表
	 */
	public List<Stock> findStocks(int kind);

	public List<Industry> findIndustrys(boolean calculate);

	/**
	 * 得到板块的区间
	 */
	public Map<String, List<Industry>> findIndustryMap(Set<String> keys, boolean calculate);

	public Map<String, List<Industry>> CalIndustryMapValue(Map<String, List<Industry>> industryMap);

	/**
	 * 按照板块名称
	 */
	// public List<String> findIndustryBkmc(boolean calculate);

	public Stock getStockByCode(String code);

	/**
	 * 根据股票编号，开始时间，结束时间来查找股票,对比值
	 */
	public Map<String, Double> findCompByCode(String code, String startdate, String enddate, String standardCode,
			String standardData);

	public List<Dealrecord> findAllDealRecord();

	public List<Dealrecord> findDealRecords(String stockCode, Dealkind dealkind);

	/**
	 * 得到涨停分析
	 * 
	 * @param date
	 * @return
	 */
	public List<ZtAnalysis> findZtAnalysis(String date);

}